package com.frogs.ucenter.v1.service;

import com.alibaba.fastjson.JSONObject;
import com.frogs.ucenter.entity.InsuranceInfo;
import com.frogs.ucenter.entity.InsuranceRecord;
import com.frogs.ucenter.entity.PartnerInsuranceRecord;
import com.frogs.ucenter.v1.request.InsuranceRecordAddRequest;

/**
 * 合作的保险公司
 * @author wushubin
 *
 */
public interface PartnerInsuranceCompanyService {

	/**
	 * 创建保单
	 * 
	 * @param request
	 * @param insuranceInfo
	 * 
	 * @return
	 * @throws Exception 
	 */
	PartnerInsuranceRecord add(InsuranceRecordAddRequest request,InsuranceInfo insuranceInfo,InsuranceRecord record) throws Exception;
	
	/**
	 * 退保单
	 * 
	 * @param insuranceInfo
	 * @param record
	 * 
	 * @return
	 * @throws Exception 
	 */
	JSONObject quit(InsuranceInfo insuranceInfo , InsuranceRecord record) throws Exception;
	
}
